<?php

namespace api\wxapp\model;

use think\Model;

class Clerk extends Model
{
    protected $table = 'sssc_app_clerk';
    public function leftuser($query)
    {
        // 按照创建时间排序
        return $query->join('app_user t2','t2.id = t1.uid');
    }
    public function returnfield($query)
    {
        return $query->field('t1.*,t2.nickname');
    }
}
